package guda.mrpc.core.registry;


import guda.mrpc.core.RequestKey;

import java.util.Collection;

public interface ServiceRegistry {

    void register(ServiceMeta serviceMeta);

    void unregister(ServiceMeta serviceMeta);

    Collection<ServiceMeta> lookup(RequestKey requestKey);

    void subscribe(RequestKey requestKey, SubscribeListener listener);
}